<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>AWS-Infra</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel="stylesheet" type="text/css" href="<c:url value='../assets/css/bootstrap.css' />" >        
        <link rel="stylesheet" type="text/css" href="<c:url value='../assets/css/jquery-ui.css' />" >
        <link rel="stylesheet/less" type="text/css" href="../assets/css/styles.less">
        <script src="../../assets/js/lib/jquery-1.8.2.min.js"></script>
        <script src="../../assets/js/lib/jquery-ui-1.9.1.custom.min.js"></script>
        <script src="../../assets/js/lib/bootstrap.min.js"></script>
        <script src="../../assets/js/lib/less-1.4.1.min.js"></script>
    </head>
    <body>

        <div class="container">
            <div class="row-fluid">
                <div class="span12">
                    <h1>Big Data Services</h1>
                    <div id="login_container">

                        <div class="row-fluid">
                            <div class="span6 login_container">
                                <h2>Sign In</h2>
                                <div class="login_form">
                                    <form action="<c:url value='j_spring_security_check'/>" name='f' method='POST'>
                                        <label for="user">Username</label>
                                        <input type="text" id="user" name="j_username" />

                                        <label for="pass">Password</label>
                                        <input type="password" id="pass" name="j_password" />

                                        <div class="btn_container">
                                            <button name="submit" type="submit" class="btn btn_form">Sign in</button>
                                        </div>
                                        <c:if test="${not empty error}">
                                            <div class="alert alert-error">
                                                Your login attempt was not successful, try again.<br /> Caused :
                                                ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
                                            </div>
                                        </c:if>
                                    </form>
                                </div>
                            </div>

                            <div class="span6">
                                <div class="register_container">
                                    <h2>Don't have an account?</h2>
                                    <button type="submit" id="btn_register" class="btn btn_form">Register</button>
                                </div>			
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>

    </body>
</html>
